﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("Notes")]
    public class Notes : IEntity<int>
    {
        //自增长ID
        public int ID { get; set; }
        //笔记内容
        [Required]
        public string Contents { get; set; }
        //所属课程
        public long CourseID { get; set; }
        //上传时间
        public DateTime CreateTime { get; set; } = DateTime.Now;
        //用户ID
        public long UserID { get; set; }

    }
}
